Deserialize XML
AutomatR.DeafultActivities.API.DeserializeXML
The "Deserialize XML" activity in AutomatR is designed to deserialize an XML string into an XDocument object. This activity is useful for handling and processing XML data within automation workflows.
Properties
Name | Description |
---|---|
Input | |
XML | Specifies the XML string that needs to be deserialized. This input is required for the activity to function correctly. Provide a string or string variable containing the XML data to be deserialized. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Deserialize XML" activity. This optional delay can be used to manage synchronization or pacing issues. Integer variables containing the delay duration (e.g., 5 for 5 seconds). |
Output | |
XML Document | Outputs the deserialized XML as an XDocument variable. This variable can be used for further processing of the XML data within the workflow. Variables of type XDocument to store the deserialized XML. |
How to use:
- Drag and drop the "Deserialize XML" activity onto the workflow.
- Configure the properties by specifying the XML string to be deserialized.
- Optionally, configure the delay to control the timing of the activity.
- Execute the workflow to deserialize the specified XML string.
Example: Consider an example where the "Deserialize XML" activity is used to parse an XML string representing configuration data:
Deserialize XML:
XML: "<configuration><setting name='MaxConnections'>10</setting><setting name='Timeout'>30</setting></configuration>"
Delay: 3
XML Document: deserializedXml
In this example, the activity deserializes the provided XML string after a delay of 3 seconds. The deserialized XML document is stored in the variable deserializedXml
for further use in the workflow.